<template>
  <el-tag v-if="props.isText && props.examType === 1" type="primary"><common-enum-view :enum-name="'ExamType'" :enum-value="props.examType" /></el-tag>
  <el-tag v-if="props.isText && props.examType === 2" type="success"><common-enum-view :enum-name="'ExamType'" :enum-value="props.examType" /></el-tag>
  <div v-if="!props.isText" class="text-img"><common-enum-view :enum-name="'ExamType'" :enum-value="props.examType" /></div>
</template>
<script setup>
  const props = defineProps({
    examType: { type: Number, default: 1 },
    isText: { type: Boolean, default: true }
  })
</script>
<style lang="scss" scoped>
  .text-img {
    height: 75px;
    width: 135px;
    border-radius: 5px;
    background-color: blueviolet;
    text-align: center;
    place-content: center;
    color: #fff;
  }
</style>
